using System.ComponentModel.DataAnnotations.Schema;
using System.Data.Entity.ModelConfiguration;

namespace ConsoleApplication2.Models.Mapping
{
    public class selectfromtblMap : EntityTypeConfiguration<selectfromtbl>
    {
        public selectfromtblMap()
        {
            // Primary Key
            this.HasKey(t => t.table_name);

            // Properties
            this.Property(t => t.table_name)
                .IsRequired()
                .HasMaxLength(128);

            // Table & Column Mappings
            this.ToTable("selectfromtbl");
            this.Property(t => t.table_name).HasColumnName("table_name");
        }
    }
}
